﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibrary1
{
    public static class Customers
    {
        public static IList<CUSTOMER> GetListCustomer()
        {
            using (var db = new VLXDKH_QLKEntities())
            {
                var c_ret = db.CUSTOMERS.Select(x => new CUSTOMER
                {
                    ID_CUS = x.ID_CUS,
                    NAME_CUS = x.NAME_CUS,
                }).ToList();
                return c_ret;
            }

        }

    }
}
